import React, { useContext } from 'react';
import { Context } from '../../store';

const Index = () => {
    const [state, dispatch] = useContext(Context)
    return (
        <div>
            home
            <hr />
            <button onClick={() => {
                dispatch({ type: "increase" })
            }}>{state.count}</button>
        </div>
    );
}

export default Index;
